package com.dashu.core.handler;

import com.dashu.base.enums.ReplRyCode;

public class VerificationException extends RuntimeException {

    /**
     * 错误码
     */
    protected static ReplRyCode replRyCode;

    protected String msg;

    public static ReplRyCode getReplRyCode() {
        return replRyCode;
    }

    public static void setReplRyCode(ReplRyCode replRyCode) {
        VerificationException.replRyCode = replRyCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * 有参构造器，返回码在枚举类中，这里可以指定错误信息
     * @param msg
     */
    public VerificationException(ReplRyCode replRyCode,String msg ) {
        super(msg);
        this.replRyCode = replRyCode;
    }
}